package com.xcity.pomelo.push.msg;

import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.AbstractMessagePush;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_MESSAGE)
public class BuildLevelUpTipPush extends AbstractMessagePush {
	
	private int id;
	private byte canLvlUp;
	
	public BuildLevelUpTipPush(int buildId, boolean canLvlUp) {
		super(MSG_BUILD_LEVEL_UP_TIP);
		this.id = buildId;
		this.canLvlUp = (byte) (canLvlUp ? 1 : 0);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public byte getCanLvlUp() {
		return canLvlUp;
	}

	public void setCanLvlUp(byte canLvlUp) {
		this.canLvlUp = canLvlUp;
	}


}
